package xyz.kongbai121.drawingbed.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * 
 * @author kongbai121
 * @email sunlightcs@gmail.com
 * @date 2021-10-28 15:21:38
 */
@Data
@TableName("image")
@ApiModel("图片实体")
public class ImageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "id")
	private Long id;

	/**
	 * 图片标题
	 */
	@ApiModelProperty(value = "图片标题")
	private String name;

	/**
	 * 网络路径
	 */
	@ApiModelProperty(value = "网络路径")
	private String src;

	/**
	 * 时间
	 */
	@ApiModelProperty(value = "时间")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date time;

}
